﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Web;
using System.Drawing;
using System.Drawing.Imaging;

namespace TRPOP.Common
{
    /// <summary>
    /// 附件实体
    /// </summary>
    public class AttachmentInfo
    {
        #region 私有变量

        private int m_intId = 0;
        private int m_intItemId = 0;
        private string m_strFileName = "";
        private string m_strErrorDescription = "";
        private long m_lngFileSize = 0;
        private string m_strFileType = "";
        private string m_strAttachment = "";

        #endregion

        #region 属性

        /// <summary>
        /// 附件ID
        /// </summary>
        public int Id
        {
            set { this.m_intId = value; }
            get { return this.m_intId; }
        }

        /// <summary>
        /// 所属信息ID
        /// </summary>
        public int ItemId
        {
            set { this.m_intItemId = value; }
            get { return this.m_intItemId; }
        }

        /// <summary>
        /// 上传后文件名
        /// </summary>
        public string FileName
        {
            set { this.m_strFileName = value; }
            get { return this.m_strFileName; }
        }

        /// <summary>
        /// 附件错误信息描述
        /// </summary>
        public string ErrorDescription
        {
            set { this.m_strErrorDescription = value; }
            get { return this.m_strErrorDescription; }
        }

        /// <summary>
        /// 附件大小
        /// </summary>
        public long FileSize
        {
            set { this.m_lngFileSize = value; }
            get { return this.m_lngFileSize; }
        }

        /// <summary>
        /// 附件类型
        /// </summary>
        public string FileType
        {
            set { this.m_strFileType = value; }
            get { return this.m_strFileType; }
        }

        /// <summary>
        /// 附件原始文件名
        /// </summary>
        public string Attachment
        {
            set { this.m_strAttachment = value; }
            get { return this.m_strAttachment; }
        }

        #endregion
    }
}
